/**
 * 通讯作者类，继承自Author类，额外包含Email字段
 */
public class CorrespondingAuthor extends Author {
    // 邮箱
    private String email;

    // 无参构造函数
    public CorrespondingAuthor() {
        super();
    }

    // 全参构造函数
    public CorrespondingAuthor(String name, String position, String company, String nationality, String email) {
        super(name, position, company, nationality);
        this.email = email;
    }

    // Getter和Setter方法
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "CorrespondingAuthor{" +
                "name='" + getName() + '\'' +
                ", position='" + getPosition() + '\'' +
                ", company='" + getCompany() + '\'' +
                ", nationality='" + getNationality() + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}